// dlg.txt

//Mk Edit

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 22;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter the Ruska Pass, the main road connecting the northern and southern halves of the Kranas Woods. Even from a distance, you could tell how beautiful the region is. Its tall, jagged mountains line a thick forest. Rivers flow down the peaks above you, and many waterfalls spill down the steep cliffs.";
	text2 = "This road sees many travelers. Some merchants, of course, but also druids and Havenite tourists. The beauty of this pass is known throughout Haven.";
	text3 = "That is why it is such a surprise that the road just stops. An impossible tangle of trees and vines has blocked your way. You suspect that, if you chopped at them, they would grow back as fast as you hacked. That is the magic of this forest.";
	text4 = "Someone has stopped at the end of the road in front of you. You see three druids of the Ro, staring into the forest. They are still and quiet.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "As you walk into the forest, the path gets darker and more overgrown. You have to concentrate to overcome the feeling of claustrophobia that grows with every step you take. Your training is more than enough to keep the magic of the Kranas from clouding your judgment.";
	text2 = "You look back. You can still see the grove where you met Druid Amberl. However, the opening seems narrower. The trees are already closing in. If you continue much farther, you might find yourself engulfed by the woods.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "At last, you have reached a precious bit of civilization. There is a large lodge along the road through the pass. It is a refuge for both merchants and travelers. No people are visible, though. The humans here were able to get to safety before the trees closed in all the way.";
	text2 = "You see movement behind one of the windows in the upper floors. Someone is here, and they have seen you arrive.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "The inside of the lodge is not what you expected. It has been invaded by the outside. The floor and ceiling of the hall are dirt, not wood. Trees grow out of the ground around you, pushing up against the ceiling. The dirt above you is shot through with a thick mat of roots, keeping it from collapsing.";
	text2 = "This is surely not how this lodge was constructed. It has been claimed by the angry magic of the forest. You can hear snarls and hisses coming from the paths ahead. Something is waiting for you.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "In the middle of the top floor, a human is waiting for you. Well, mostly a human.";
	text2 = "He is an old man, a druid of the Kranas. His upper half is still a person. His lower half has grown into the ground. Where his robes fall away, you see his flesh knotted with roots, a gruesome mass that sinks down into the earth.";
	text3 = "When you enter the chamber, his eyes are glassed over. For a moment, you think he's dead. Then he turns, very slowly, to face you. He says, _Come. Speak. Face judgment._";
	text4 = "His voice is slow, deep, and utterly inhuman.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The druids to the sides are ignoring you. They concentrate on the trees.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "As you fight the hideous druid-tree creature, its skin begins to bulge. Tiny bubbles appear on his exposed flesh. They start to inflate, filling with spores. Or slime. Something horrifying.";
	text2 = "Soon, they will explode!";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "The pustules on the druid-beast are full to stretching. His body convulses and they explode, spraying disgusting goo everywhere. Everyone he can see is sprayed with the vile stuff.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Once Druid Larchman fused with the plants, he was going to die. He hoped, before he did, that he could bring a Havenite to justice. As powerful as this vassal was, he was unable to resist the power of Haven.";
	text2 = "He leans to the side and then collapses. The little pustules covering his body shrink. He looks up at you. Before he dies, he grunts out three words: _Prova Krug, then._ And he is dead.";
	text3 = "The power blocking the Ruska Pass is gone. Your people will be able to travel through here freely now.";
	
begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Drudi Amberl 15 11 4

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There are three druids staring at the trees ahead. Just staring. Concentrating. Trying to understand the forest. Trees probably don't respond well to speedy conversation.";
	text2 = "The two druids to the side are younger, probably apprentices. They keep staring at the trees, sweat beading out on their foreheads. The older woman in the center responds to your presence.";
	text3 = "_I am Druid Amberl. You have come._";
	text5 = "Druid Amberl continues to stare straight ahead. Even while speaking with you, her concentration remains unbroken.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(15,11) != 4;
	question = "_Hello._";
	text1 = "_Hello. You are the Havenite. We knew it would happen. We knew you would have no choice but to arrive._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(15,11) != 4;
	question = "_Why are you here?_";
	text1 = "_The Ruska Pass is angry. It wants to talk to us. We have come to listen._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(15,11) != 4;
	question = "_I need to pass through here._";
	text1 = "_Many do. Some, it lets by. Others, it rejects. Against you, it is very angry. I can feel it._ Really? You can't feel anything unusual. Just a bunch of trees.";
	text2 = "_You can't go through here._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_How long has the road been blocked?_";
	text1 = "_It is not always blocked. Sometimes it lets us through for a short time. When you got close, however, it closed up tight. The trees are angry._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I am a [P] of Haven._";
	text1 = "_The trees do not care. They are not ready to judge you. The forest will not see you now, and it is so much larger than us._";
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Where should I go to, then?_";
	text1 = "_Go to Ssilyn. Go to the Raasa. When the forest changes its mood, we druids tell the Raasa. Then you can be guided. Go now. We will do what we can. We don't want the forest angry either._";
	text2 = "Amberl has nothing else to say.";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(15,11) == 4 && gf(22,13) == 0;
	question = "_Hello._";
	text1 = "_Hello. You are the Havenite. We knew it would happen. We knew you would have no choice but to arrive._";
	text2 = "_This is the right time. The forest is prepared. It will judge you now._";
	code =
		sf(22,13,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = 12;
	condition = gf(22,13) > 0;
	question = "_Why have you come here?_";
	text1 = "_Because the forest is angry. It calls forth its beasts. It blocks the roads. We sense its rage. It sends its trees and its creatures. And ... something more._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_How long has the road been blocked?_";
	text1 = "_It is not always blocked. Sometimes it lets us through for a short time. When you got close, however, it closed up tight. The trees are angry._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Why is the forest angry?_";
	text1 = "_We do not know. The forest will have to tell you on its own._";
	text2 = "Amberl is lying. You can tell that much. She just doesn't have to say, so she chooses not to.";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_'Something more'?_";
	text1 = "_Losing the Ruska Pass is ... strange. This is not a heart of the forest. This is not a sacred grove. It is not even particularly magical. That is why outsiders come here to gawk at the waterfalls._";
	text2 = "_Something else is blocking you._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_What do you think is defending the pass?_";
	text1 = "_I ... I do not know._ You suspect a lie. _You are the envoy. You answer the Raasa's petition. You will have to find out yourself._";

begintalknode;
	state = 10;
	nextstate = 14;
	condition = gf(22,13) > 0;
	question = "_I need to pass this road._";
	text1 = "_At last, we can talk to the woods. In this matter, the trees will listen. In this, we can help you._";
	
begintalknode;
	state = 14;
	nextstate = 10;
	condition = gf(22,13) == 1;
	question = "_What can you do for me?_";
	text1 = "_It is already done. Look._ You look around and see, much to your surprise, that a path has opened up in the trees nearby. You didn't hear a sound.";
	text2 = "_We asked and were answered. The forest will see you now._";
	code =
		sf(22,13,2);
	break;
	
begintalknode;
	state = 10;
	nextstate = 15;
	condition = gf(22,13) > 1;
	question = "_Can you give me more help?_";
	text1 = "_No. You must answer for Haven alone. I only give you a bit of warning._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = gf(22,13) > 1;
	question = "_What should I watch out for?_";
	text1 = "_The forest is angry. If you proceed, it will not want you to return. Be sure you are prepared before you enter._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(22,13) > 0;
	question = "_I'll be going now._";
	text1 = "The druids don't respond. They continue to commune with the woods. For what purpose, you can't say.";
	action = END_TALK;
	
	
// amberl 2

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "At last, you reach the road out of the Ruska Pass. The cold, windy reaches of the northern Kranas are open to you.";
	text2 = "Druid Amberl is waiting for you on the road. She is no longer quiet or lost in conversation. She looks terribly sad.";
	text3 = "_You were victorious, Haven. The pass is free. I came to ask you, what was the source of the problem? Who did you have to defeat?_";
	code =
		sf(22,14,1);
	break;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I don't want to say._";
	text1 = "She moves to block your path. _This is of great importance to us. The druids must know. The Kranas must know. Who did you fight?_";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "_It was Druid Larchman._";
	text1 = "She bows her head. _I was afraid of that. He had been missing for some time. We thought that he had gone to join with the forest. Alas, we were right._";

begintalknode;
	state = 41;
	nextstate = 42;
	condition = 1;
	question = "_You knew him?_";
	text1 = "_He was one of the oldest and wisest of our number. He was a true leader. Knowledgeable, patient, greatly respected. A noble and brave friend of nature._";

begintalknode;
	state = 42;
	nextstate = 43;
	condition = 1;
	question = "_He attacked me._";
	text1 = "_He did. He chose to destroy himself to oppose Haven. He gave up everything to show how much harm your people are doing to our forest. You destroyed him._";

begintalknode;
	state = 42;
	nextstate = 43;
	condition = 1;
	question = "_He trapped me in the Ruska Pass._";
	text1 = "_That is true. He opposed the might of Haven, and you consumed him. Opposing Haven is choosing destruction. He gave up everything to show how much harm your people are doing to our forest._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_He challenged the might of Haven. He paid the price._";
	text1 = "_He learned his lesson. We have all learned it. He said his piece, and you said yours._ She steps out of your way.";
	text2 = "_I will go north. I will try to calm the forests. I want this destruction to end. We wait to see if you do too. You have it in your power to make Haven stop killing the groves. I wonder what you will choose to do?_";
	text3 = "She wipes away a tear, turns, and leaves on the road.";
	action = END_TALK;
	code =
		ro_faction(-1);
		erase_char(2255);
	break;

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_He forced me to defend myself. So I did so._";
	text1 = "_He chose this battle. We do not deny it. He forced you to pay attention, and you did. He said his piece, and you said yours._ She steps out of your way.";
	text2 = "_I will go north. I will try to calm the forests. I want this destruction to end. We wait to see if you do too. You have it in your power to make Haven stop killing the groves. I wonder what you will choose to do?_";
	text3 = "She wipes away a tear, turns, and leaves on the road.";
	action = END_TALK;
	code =
		erase_char(2255);
	break;

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_Killing him fills me with sorrow, but it was necessary._";
	text1 = "This response surprised the druid. _That is a ... surprisingly wise response. He forced you to pay attention, and you did. He said his piece, and you said yours. We suppose that you could do nothing else._ She steps out of your way.";
	text2 = "_You seem wise. Are you so in truth? I will go north. I will try to calm the forests. I want this destruction to end. As for you, you have it in your power to make Haven stop killing the groves. I wonder what you will choose to do?_";
	text3 = "She wipes away a tear, turns, and leaves on the road.";
	action = END_TALK;
	code =
		ro_faction(2);
		erase_char(2255);
	break;

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_You druids have hampered me enough. Get out of my way._";
	text1 = "For a moment, she looks furious. Then she returns to the standard calm, cold Ro expression. She opens her mouth, but she can't figure out what to say.";
	text3 = "Finally, she says, in a choked voice, _He could force you to listen. He won't be the last._ She wipes away a tear, turns, and leaves on the road.";
	action = END_TALK;
	code =
		ro_faction(-2);
		erase_char(2255);
	break;
	

	
// Druid Larchman

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "The druid looks at you with unblinking eyes. He continues to speak in that deep, slow, inhuman voice. _I chose this place. I have prepared. I speak for the forest. I will make you answer._";
	code =
		set_attitude(2250,10);
	break;
	
begintalknode;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "_I am [P] [N] of Haven. Who are you?_";
	text1 = "_Your title is accepted. You can speak for the criminals. I am Druid Larchman. I am the trees. I am your judgment._";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "_Are you the one who trapped me here?_";
	text1 = "_I am. I am Druid Larchman. I waited for the one with the title. For the [P]. You can speak for the crimes. You can accept the judgment._";

begintalknode;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "_Yikes! What happened to you?_";
	text1 = "_I have chosen my end. I join with the wood to speak for it. I waited for the one with the title. The [P] has come. You can speak for the crimes. You can accept the judgment._";
	text2 = "";

begintalknode;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "_Judgment?_";
	text1 = "_The balance of the humans and the wood was delicate, but we maintained it. Haven has grown greedy. You have begun to tip the balance. We will speak to you before it is too late. You will be judged._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_What did we do wrong, exactly?_";
	text1 = "_The forest can accept many of you, but we must do it in our own way. We open groves. We allow mines. You must be patient, though. it takes time._";
	text2 = "_Haven pushes too far, too fast. Too many mines. Too many colonies. The groves are hurt. Some die. This must be answered._";

begintalknode;
	state = 72;
	nextstate = 73;
	condition = 1;
	question = "_You are a vassal. You have no right to pronounce judgment on me._";
	text1 = "_You are far from home, arrogant [P]. You came willingly. Our branches wrap around you. Judgment has already been given. I must deliver it._";

begintalknode;
	state = 72;
	nextstate = 73;
	condition = 1;
	question = "_Haven is here to listen and to receive your judgment._";
	text1 = "_You accept your fate with dignity. You allowed our branches to wrap around you. Judgment has already been given. I must deliver it._";

begintalknode;
	state = 72;
	nextstate = 73;
	condition = 1;
	question = "_I never wanted to come here. I am just doing my job._";
	text1 = "_You talk about trivial human business. Intent is not important. Actions are important. You came willingly. Our branches wrap around you. Judgment has already been given. I must deliver it._";

begintalknode;
	state = 73;
	nextstate = 74;
	condition = 1;
	question = "_And what is your judgment?_";
	text1 = "_Haven did not wait for the groves to give. Haven took that which belonged to nature. Haven killed two groves and angered the others. It will take centuries to repair this damage. We find you guilty of hurting our sacred groves._";

begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_Haven has heard you, and we will improve in the future._";
	text1 = "_That belongs to the future. The trees will live to see it. This human will not. That doesn't matter. For justice, a penalty will be paid._";

begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_This is a forest in one of Haven's vassals. We will use it as we choose._";
	text1 = "_This response was expected. That is why we need a penalty to be paid. Haven will be shown that it is not immune to justice. Or vengeance._";
	text2 = "";

begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_I will pass your words on to my Queen._";
	text1 = "_Your Queen will get a message. That is true. We need to make sure that it is clear and lasting. Since you did this crime, a penalty must be paid._";
	
begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_Oh._";
	text1 = "There is a long, awkward pause. The druid's attention seems to be fading. Then he says, _So. Yes. Crime. There was a crime. We must send a message. A penalty must be paid._";

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_I think I see where this is heading._";
	text1 = "Druid Larchman holds his arms wide. The earth shudders under your feet. Unruly roots start growing out of the ground all around you. Spores rise out of the flowers, making you feel ill.";
	text2 = "_A grove is a life! You took lives! The justice of the Ro says we may claim lives in return!_ And then Druid Larchman stops talking. All humanity leaves his eyes. The forest has entirely claimed him, and the trees are very angry.";
	action = END_TALK;



//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				